package com.gper.edu.vip.struct.facade;

/**
 * @Author: ellis.guan
 * @Description: 门面模式服务
 * @Date: 2020/3/7 19:20
 * @Version: 1.0
 */
public class FacadeService {
    private QualifyService qualifyService = new QualifyService();
    private PaymentService paymentService = new PaymentService();
    private ShippingService shippingService = new ShippingService();
    /**
     * 对换礼物
     * @param gifInfo
     */
    public void exchange(GifInfo gifInfo){
        qualifyService.isAvailable(gifInfo);
        paymentService.payment(gifInfo);
        shippingService.delivery(gifInfo);
    }
}
